<?php
!function_exists('zeai_alone') && exit('Forbidden!');
switch ($t) {
	case 'sx':$t_t  = '私信聊天';require_once ZEAI.'m/div_left_so.php';break;
	case 'tz':$t_t  = '系统通知';break;
	case 'hi':$t_t  = '收到招呼';break;
	case 'see':$t_t = '谁看过我';break;
}?>
<!doctype html><html><head><meta charset="utf-8">
<title><?php echo $t_t;?>-<?php echo $_ZEAI['siteName'];?></title>
<?php echo HEADMETA; ?>
<meta name="generator" content="Zeai.cn V9" />
<link href="<?php echo RES;?>m/css/m.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<link href="<?php echo HOST;?>/cache/zeaicolor.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<link href="<?php echo RES;?>m/css/my_msg2.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<script src="<?php echo RES;?>www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<script src="<?php echo RES;?>m/js/m.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<script src="<?php echo RES;?>m/js/my_msg2.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<style>
#backtop a{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
.box_hi dl dd{background-color:rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.6);}
.box_hi dl dd:before{border-right-color:rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.6);}
.my_msg_nav a span.ed{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
.my_msg_top:before{background-image:url("<?php echo RES;?>m/img/my_bg.png");}
a.aQING{color:<?php echo $_ZEAI['mob_mbcolor'];?>}
.viptips .vipbtn,.seelist_no h5 a{box-shadow:0 3px 8px rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.4);background:-webkit-linear-gradient(315deg,rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.6) 0%,<?php echo $_ZEAI['mob_mbcolor'];?> 100%);}
.box_hi a{background-image:-webkit-linear-gradient(left,rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,.8),rgba(<?php echo c16_rgb($_ZEAI['mob_mbcolor']);?>,1))}
/*topnav*/
.topnav a.ed:after{background-color:<?php echo $_ZEAI['mob_mbcolor'];?>}
</style>
</head><body>
<?php
/*********消息正文*********/
if ($t == 'tip_detail'){
	if(!ifint($tid))zeaialert('{"title":"error_tid","btnt":"我知道了","url":"-1"}');
	$row = $db->ROW(__TBL_TIP__,"content,new,addtime,kind","uid=".$cook_uid." AND id=".$tid);
	if ($row){
		$content = dataIO($row[0],'out');
		$content = str_replace("aQING","zeaicolor",$content);
		$new     = $row[1];
		$addtime = YmdHis($row[2]);
		$kind    = $row[3];
		if ($new == 1){
			$db->query("UPDATE ".__TBL_TIP__." SET new=0 WHERE id=".$tid." AND uid=".$cook_uid);
			$db->query("UPDATE ".__TBL_USER__." SET tipnum=tipnum-1 WHERE tipnum>=1 AND id=".$cook_uid);
		}
		$kindT=($kind==1)?'系统消息':'红娘消息';
	}else{zeaialert('{"title":"消息不存在","btnt":"我知道了","url":"-1"}');}
	
	$mini_title=$kindT;
	require_once ZEAI.'m/top_mini.php';
	?>
	<style>
	.msg_detail{background-color:#fff;margin-top:50px;padding:20px 30px 30px 30px;line-height:200%;font-size:16px;text-align:left}
	.linebox{margin:20px 0 0;z-index:0}</style>
    <div class="msg_detail">
		<div id="msgC"><?php echo $content;?></div>
        <div class="linebox"><div class="line "></div><div class="title BAI S14 C999"><?php echo $addtime; ?></div></div>
    </div>
	<script>
		function returnId(href,str){
			var hrefarr = href.split(str);
			var newhref=hrefarr[hrefarr.length-1];
			newhref=newhref.replace('/','');
			var id=newhref.replace('.html','');
			return id;
		}	
		//链接处理
		(function pcAreset(){//var mobAarr=['my_money','my_loveb','my_info'];
		zeai.listEach(zeai.tag(msgC,'a'),function(a){
			var href=a.href;
			//pc链接处理
			if (href.indexOf('/u/') !== -1){
				var uid=returnId(href,'/u/');
				a.onclick=function(){zeai.openurl(HOST+'/m/u'+zeai.ajxext+'uid='+uid);}
			}
			if (href.indexOf('/u.php?uid=') !== -1){
				var uid=returnId(href,'/u.php?uid=');
				a.onclick=function(){zeai.openurl(HOST+'/m/u'+zeai.ajxext+'uid='+uid);}
			}
			//
			if (href.indexOf('/video') !== -1){a.onclick=function(){zeai.openurl('<?php echo HOST;?>/?z=video');}}
			if (href.indexOf('/my_money') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_money'+zeai.extname);}}
			if (href.indexOf('/my_loveb') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_loveb'+zeai.extname);}}
			if (href.indexOf('/my_cert') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_cert'+zeai.extname);}}
			//if (href.indexOf('/my_tg') !== -1){a.onclick=function(){zeai.openurl('m/TG'+zeai.extname,'msg_detail','TG');}}
			if (href.indexOf('/my_info') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_info'+zeai.extname);}}
			if (href.indexOf('/my_photo') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_info'+zeai.extname);}}
			if (href.indexOf('/my.php') !== -1){a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/my'+zeai.extname);}}
			if (href.indexOf('/my_vip') !== -1){a.onclick=function(){zeai.openurl(HOST+'/m/my_vip'+zeai.extname);}}
			//约会
			if (href.indexOf('/dating_detail.php?fid=') !== -1){
				var fid=returnId(href,'/dating_detail.php?fid=');
				a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/dating.php?id='+fid);}
			}else if(href.indexOf('/dating/') !== -1){
				var fid=returnId(href,'/dating/');
				if(zeai.ifint(fid)){
					a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/dating.php?id='+fid);}
				}else{
					a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/dating.php');}
				}
			}
			//交友圈
			if(href.indexOf('/trend/') !== -1){
				var fid=returnId(href,'/trend/');
				if(zeai.ifint(fid)){
					a.onclick=function(){zeai.openurl('<?php echo HOST;?>/?z=trend&submitok=my');}
				}
			}
			//活动
			if (href.indexOf('/party_detail.php?fid=') !== -1){
				var fid=returnId(href,'/party_detail.php?fid=');
				a.onclick=function(){zeai.openurl(HOST+'/m/party_detail'+zeai.ajxext+'fid='+fid);}
			}else if(href.indexOf('/party/') !== -1){
				var fid=returnId(href,'/party/');
				if(zeai.ifint(fid)){
					a.onclick=function(){zeai.openurl(HOST+'/m/party_detail'+zeai.ajxext+'fid='+fid);}
				}else{
					a.onclick=function(){zeai.openurl('<?php echo mHref('party');?>');}
				}
			}
			//红包
			if (href.indexOf('/hongbao_detail.php?fid=') !== -1){
				var fid=returnId(href,'/hongbao_detail.php?fid=');
				a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/hongbao/detail'+zeai.ajxext+'fid='+fid);}
			}else if(href.indexOf('/hongbao/') !== -1){
				var fid=returnId(href,'/hongbao/');
				if(zeai.ifint(fid)){
					a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/hongbao/detail'+zeai.ajxext+'fid='+fid);}
				}else{
					a.onclick=function(){zeai.openurl('<?php echo HOST;?>/m/hongbao');}
				}
			}
			/*手机内部链接处理/http://www.yzlove.com/?z=dating&e=detail&a=23
			for(var m=0;m<mobAarr.length;m++){
				if (href.indexOf(mobAarr[m]) !== -1){
					a.onclick=function(){ZeaiM.page.load('m/'+pagestr+zeai.extname,'msg_detail',pagestr);}
				}
			}*/
			//a.removeAttribute("href");
		});
	})()
    </script>
    </body></html>
<?php exit;}?>
<style>
</style>
<div class="topnav">
	<?php if(@in_array('chat',$navarr)){?><a href="<?php echo HOST;?>/m/my_msg.php?t=sx"<?php echo ($t == 'sx')?' class="ed"':'';?>>私信<?php echo ($t == 'sx')?'': $chatnum_str;?></a><?php }?>
	<a href="<?php echo HOST;?>/m/my_msg.php?t=tz"<?php echo ($t == 'tz')?' class="ed"':'';?>>通知<?php echo ($t == 'tz')?'': $tznum_str;?></a>
	<?php if(@in_array('hi',$navarr)){?><a href="<?php echo HOST;?>/m/my_msg.php?t=hi"<?php echo ($t == 'hi')?' class="ed"':'';?>>招呼<?php echo ($t == 'hi')?'':$hinum_str;?></a><?php }?>
	<a href="<?php echo HOST;?>/m/my_msg.php?t=see"<?php echo ($t == 'see')?' class="ed"':'';?>>访客<?php echo ($t == 'see')?'':$seenum_str;?></a>
    <?php if ($t == 'sx'){?><font id="sx_so_btn"><i class="ico">&#xe68c;</i> 筛选</font><?php }?>
</div>
<?php
/*********私信*********/
if ($t == 'sx'){?>
    <main id='main' class='msg'>
	<?php
	$sql_ = " (uid=".$cook_uid." OR senduid=".$cook_uid.") AND ifdel<>".$cook_uid;
	$Skey = trimhtml(dataIO($Skey,'out'));
	if (ifint($Skey)){
		$SQLKEY = " AND (uid=$Skey OR senduid=$Skey)";
	}elseif(!empty($Skey)){
		$row = $db->ROW(__TBL_USER__,"id","nickname='$Skey'",'num');
		if ($row){
			$Skeyuid= $row[0];
			$SQLKEY = " AND (uid=$Skeyuid OR senduid=$Skeyuid)";
			gyl_debug('SQLKEY='.$SQLKEY);
		}
	}
	$SQL = "SELECT id,uid,senduid,t,addtime,kind FROM ".__TBL_MSG__." A,(SELECT MAX(id) AS max_id FROM ".__TBL_MSG__." WHERE ".$sql_.$SQLKEY." GROUP BY senduid,uid) B WHERE A.id=B.max_id AND ".$sql_.$SQLKEY." ORDER BY A.id DESC";//,content
	$rt=$db->query($SQL);
	while($tmprows = $db->fetch_array($rt,'name')){if($tmprows['senduid'] == $cook_uid){$tmprows['senduid'] = $tmprows['uid'];}$arr[]=$tmprows;}
	if($arr){
		$list = msg_reset($arr);
		foreach ($list as $rows) {
			$senduid = $rows['senduid'];
			$tt      = $rows['t'];
			//$content = dataIO($rows['content'],'out');
			$addtime_str = date_str($rows['addtime'],'m月d日');
			//主表信息
			$row = $db->ROW(__TBL_USER__,"sex,grade,nickname,photo_s,photo_f,birthday,pay,areatitle,heigh,edu,photo_ifshow,flag,RZ","id=".$senduid);
			$sex      = $row[0];
			$grade    = $row[1];
			$nickname = trimhtml(dataIO($row[2],'out'));
			$nickname = (empty($nickname))?'uid:'.$senduid:$nickname;
			$photo_s  = $row[3];
			$photo_f  = $row[4];
			$birthday  = $row[5];
			$pay       = $row[6];
			$areatitle = $row[7];
			$heigh     = $row[8];
			$edu       = $row[9];
			$photo_ifshow = $row[10];
			$flag      = $row[11];
			$RZ = $row[12];$RZarr=explode(',',$RZ);
			$cert_str = '';
			if(in_array('identity',$RZarr) || in_array('photo',$RZarr)){
				$cert1 = (in_array('identity',$RZarr))?'<div class="identity">实名</div>':'';
				$cert2 = (in_array('photo',$RZarr))?'<div class="photo">真人</div>':'';
				$cert_str = ''.$cert1.$cert2.'';
			}
			//$birthday_str = (getage($birthday)<=0)?'':getage($birthday).'岁';
			//$heigh_str    = (empty($heigh))?'':' '.udata('heigh',$heigh);
			//$aARR = explode(' ',$areatitle);$areatitle = $aARR[2].$aARR[3];
			//$areatitle_str = (empty($areatitle))?'':' '.$areatitle;
			$edu_str       = (empty($edu))?'':''.'<b>|</b>'.udata('edu',$edu);
			$birthday_str  = (getage($birthday)<=0)?'':getage($birthday).'岁';
			$heigh_str     = (empty($heigh))?'':'<b>|</b>'.$heigh.'cm';
			$aARR = explode(' ',$areatitle);$areatitle = $aARR[2];
			$areatitle_str = (empty($areatitle))?'':'<b>|</b>'.$areatitle;
			$photo_s_url = photo_s_out('{"smb":"s","sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$flag.'","outkind":"url"}');			
			if($flag==-2)$nickname='***';
			//列表红点
			$inum     = $db->COUNT(__TBL_MSG__," new=1 AND ifdel=0 AND senduid=".$senduid." AND uid=".$cook_uid);
			$inum_str = ($inum>0)?'<i class="new">'.$inum.'</i>':'';
			//锁
			//if($chat_duifangfree[$grade]!=1){
			//	$MsgFlag = lock_msg($senduid);
			//}else{
			//	$MsgFlag=true;
			//}
			//if ($MsgFlag){
			//	if($tt == 2){$content = '[语音]';}elseif(strstr($content,"[/img]")){$content = preg_replace("/\[img\](.+?)\[\/img\]/is","<img src=".RES."bq/\\1.gif>",$content); }$dtcls = '';
			//}else{
				$content = $birthday_str.$heigh_str.$edu_str.$pay_str.$areatitle_str;
				//$dtcls = 'class="lock"';
			//}
			//uicon($sex.$grade).
			?>
			<dl>
				<dt uid="<?php echo $senduid; ?>"<?php echo $dtcls;?>><img src="<?php echo $photo_s_url; ?>"><i class="ico lockico">&#xe620;</i><?php echo $inum_str; ?></dt>
				<dd><h4><?php echo uicon($sex.$grade).'<font>'.$nickname.'</font>'.$cert_str; ?></h4><h6><?php echo $content; ?></h6></dd>
				<span><?php echo $addtime_str; ?></span>
				<strong>删除</strong>
			</dl>
			<?php
		}
	}else{
		echo '<div class="nodatatips"><i class="ico">&#xe629;</i>暂时还没有人和你聊天</div>';
	}?>
    </main>
    <!--div_left_so-->
    <div class="div_left_so" id="sx_so">
        <form action="<?php echo HOST;?>/m/my_msg.php" class="form_uid" id="ZEAI_CN__FORM"name="www.zeai.cn">
            <input name="Skey" type="text" class="input" id="Skey" maxlength="20" value="<?php echo $Skey;?>" placeholder="按会员ID、昵称" autocomplete="off">
            <button type="submit" class="ico">&#xe6c4;</button>
            <input type="hidden" name="t" value="sx">
        </form>
        <div class="savebox"><button type="button" class="btn size3 reset" id="div_left_so_resetbtn" onClick="div_left_so_reset('sx_so')">重置</button><button type="button" class="btn size3 zeaibg ico"  onClick="ZEAI_CN__FORM.submit();">&#xe6c4; 确定</button></div>
        <script>sx_so_btn.onclick=sx_so_btnFn;</script>
    </div>
    <!--div_left_so end-->
    <script>msgsxFn();</script>
<?php
/*********通知*********/
}elseif($t=='tz' || $t=='hi'){?>
	<main id='main' class='msg'>
    <?php
	if(!in_array('gift',$navarr))$SQL = " AND kind<>2";
	if($t=='tz'){
		$SQL .= " AND kind<>3";
		$no_str = '<i class="ico">&#xe657;</i>暂无通知';
	}elseif($t=='hi'){
		$SQL .= " AND kind=3";
		$no_str = '<i class="ico">&#xe8ca;</i>暂时还没有人和你打招呼';
	}
	$rt=$db->query("SELECT id,senduid,title,content,new,kind,addtime FROM ".__TBL_TIP__." WHERE uid=".$cook_uid.$SQL." ORDER BY id DESC LIMIT 100");
	$total = $db->num_rows($rt);
	if ($total > 0) {
		for($i=1;$i<=$total;$i++) {
			$rows = $db->fetch_array($rt,'num');
			if(!$rows)break;
			$id      = $rows[0];
			$senduid = $rows[1];
			$new     = $rows[4];
			$kind    = $rows[5];
			$addtime_str = date_str($rows[6]);
			$new_str = ($new == 1)?'<b></b>':'';
			if ($kind == 2 || $kind == 3){
				$row = $db->NUM($senduid,"sex,grade,nickname,photo_s,photo_f,flag,photo_ifshow");
				$sex      = $row[0];
				$grade    = $row[1];
				$nickname = dataIO($row[2],'out');
				$nickname = (empty($nickname))?'uid:'.$senduid:$nickname;
				$photo_s  = $row[3];
				$photo_f  = $row[4];
				$flag     = $row[5];
                $photo_ifshow = $row[6];
				$photo_s_url = photo_s_out('{"smb":"s","sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$flag.'","outkind":"url"}');
				if($flag==-2)$nickname='***';
				$img_str     = '<img src="'.$photo_s_url.'">';
				if($kind == 2){
					$kind_str = '<i class="ico k2">&#xe600;</i>';
				}elseif($kind == 3){
					$kind_str = '<i class="ico k3">&#xe6bd;</i>';
				}
				$title   = uicon($sex.$grade).$nickname;
				$content = dataIO($rows[3],'out');
			}else{//1,4
				if($kind == 1){
					$img_str = '<i class="ico k1">&#xe657;</i>';
					$title   = '系统消息';
				}elseif($kind == 4){
					$img_str = '<i class="ico k4">&#xe613;</i>';
					$title   = '红娘消息';
				}
				$kind_str = '';
				$content = dataIO($rows[2],'out');
			}?>
			<dl>
				<dt tid="<?php echo $id; ?>" kind="<?php echo $kind;?>"><?php echo $img_str; ?><?php echo $new_str; ?></dt>
				<dd><h4><?php echo $title; ?></h4><h6><?php echo $content; ?></h6></dd>
				<span><?php echo $addtime_str; ?></span><?php echo $kind_str; ?>
				<strong>删除</strong>
			</dl><?php
    	}
	}else{
		echo '<div class="nodatatips">'.$no_str.'</div>';
	}?>
	</main>
	<script>msgtzFn();</script>
<?php
/*********谁看过我*********/
}elseif($t=='see'){
	$viewlist = json_decode($_VIP['viewlist'],true);
	if ($viewlist[$cook_grade]!=1){?>
		<div class="viptips">
			<?php 
			$vwnum = $db->COUNT(__TBL_CLICKHISTORY__,"uid=".$cook_uid);
			$rt=$db->query("SELECT a.senduid,a.new,a.addtime,b.sex,b.photo_s,b.photo_f,b.photo_ifshow,b.flag FROM ".__TBL_CLICKHISTORY__." a,".__TBL_USER__." b WHERE a.senduid=b.id AND a.uid=".$cook_uid." ORDER BY a.addtime DESC LIMIT 6");
			$total = $db->num_rows($rt);
			if ($total > 0){
				echo '<div class="ivubox">';
				$viewblurClass = ($viewlist[$cook_grade]!=1)?' class="blur"':'';
				for($ii=1;$ii<=$total;$ii++) {
					$rows = $db->fetch_array($rt,'name');
					if(!$rows) break;
					$senduid = $rows['senduid'];
					$sex     = $rows['sex'];
					$new     = $rows['new'];
					$new_str = ($new == 1)?'<b></b>':'';
					$photo_s  = $rows['photo_s'];
					$photo_f  = $rows['photo_f'];
					$photo_ifshow  = $rows['photo_ifshow'];
					$uflag  = $rows['flag'];
					$photo_s_url = photo_s_out('{"smb":"s","sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$uflag.'","outkind":"url"}');					
					echo '<span><img src="'.$photo_s_url.'"'.$viewblurClass.'></span>';
				}
				echo '</div>';
			}
			?>
			<font>最近有<b><?php echo $vwnum;?></b>人看过你</font>
			<h5>缘分就在一瞬间，不错过喜欢你的人</h5>
			<a href="my_vip.php?jumpurl=<?php echo urlencode(HOST.'/m/my_msg.php?t=see');?>" class="btn size3 zeaibg yuan vipbtn">　<i class="ico">&#xe6ab;</i> 立即开通VIP查看　</a>
		</div>
	<?php }else{
		echo '<div class="seelist">';
		$rt=$db->query("SELECT a.id,a.senduid AS uid,a.new,a.addtime,b.nickname,b.sex,b.grade,b.photo_s,b.photo_f,b.areatitle,b.birthday,b.edu,b.pay,b.heigh,b.photo_ifshow,b.flag,b.RZ FROM ".__TBL_CLICKHISTORY__." a,".__TBL_USER__." b WHERE a.uid=".$cook_uid." AND a.senduid=b.id ORDER BY a.addtime DESC LIMIT 20");
		$total = $db->num_rows($rt);
		if ($total > 0) {
			for($i=1;$i<=$total;$i++){
				$rows = $db->fetch_array($rt,'name');
				if(!$rows)break;
				$id      = $rows['id'];
				$uid     = $rows['uid'];
				$new     = $rows['new'];
				$addtime_str = date_str($rows['addtime']);
				$new_str = ($new == 1)?'<b></b>':'';
				//
				$nickname = trimhtml(dataIO($rows['nickname'],'out'));
				$sex      = $rows['sex'];
				$grade    = $rows['grade'];
				$photo_s  = $rows['photo_s'];
				$photo_f  = $rows['photo_f'];
				$flag     = $rows['flag'];
                $photo_ifshow = $rows['photo_ifshow'];
				$areatitle= $rows['areatitle'];
				$birthday = $rows['birthday'];
				$edu      = $rows['edu'];
				$pay      = $rows['pay'];
				$heigh    = $rows['heigh'];
				$edu_str       = (empty($edu))?'':''.'<b>|</b>'.udata('edu',$edu);
				$birthday_str  = (getage($birthday)<=0)?'':getage($birthday).'岁';
				$heigh_str     = (empty($heigh))?'':'<b>|</b>'.$heigh.'cm';
				$aARR = explode(' ',$areatitle);$areatitle = $aARR[2];
				$areatitle_str = (empty($areatitle))?'':'<b>|</b>'.$areatitle;
				$photo_s_url = photo_s_out('{"smb":"s","sex":"'.$sex.'","photo_s":"'.$photo_s.'","photo_f":"'.$photo_f.'","photo_ifshow":"'.$photo_ifshow.'","uflag":"'.$flag.'","outkind":"url"}');				
				if($flag==-2)$nickname='***';
				$RZ = $rows['RZ'];$RZarr=explode(',',$RZ);
				$cert_str = '';
				if(in_array('identity',$RZarr) || in_array('photo',$RZarr)){
					$cert1 = (in_array('identity',$RZarr))?'<div class="identity">实名</div>':'';
					$cert2 = (in_array('photo',$RZarr))?'<div class="photo">真人</div>':'';
					$cert_str = ''.$cert1.$cert2.'';
				}
				$O  = '<dl onClick="zeai.openurl(\''.a('{"kind":"u","uid":"'.$uid.'"}').'\')">';
				$O .= '<dt><img src="'.$photo_s_url.'"></dt>';
				$O .= '<dd><h4>'.uicon($sex.$grade).'<font>'.$nickname.$cert_str.'</font></h4><h6>'.$birthday_str.$heigh_str.$edu_str.$pay_str.$areatitle_str.'</h6></dd>';
				$O .= '<span>'.$addtime_str.'</span>';
				$O .= '</dl>';
				echo $O;
			}
		}else{?>
            <div class="my_hn_no seelist_no">
                <h4><i class="ico">&#xe659;</i>暂时还没有人看过你</h4>
                <h5 class="C999">
                    您可以通过以下方式来提高自己的爆光度和受众率<br><br>
                    <a href="<?php echo HOST;?>/m/my_info.php" class="zeaibg">上传头像</a>
                    <a href="<?php echo HOST;?>/m/my_info.php" class="zeaibg">完善资料</a>
                    <a href="<?php echo HOST;?>/m/my_cert.php" class="zeaibg">实名认证</a>
                    <a href="<?php echo HOST;?>/m/my_top.php" class="zeaibg">刷新排名</a>
                </h5>
            </div>
		<?php }
			if($total>5){?><br><a href="<?php echo HOST;?>/m/my_browse.php?t=1" class="btn size3 zeaibg yuan">　点击查看更多　</a><?php }
		echo '</div>';?>
    <?php }?>
<?php }?>
<div id="msg_gift_box" class="box_gift">
    <em><img><h3></h3><h6></h6></em>
    <a href="javascript:;">看TA资料</a>
    <a href="javascript:;">回赠礼物</a>
</div>
<div id='tips0_100_msg_hi' class='tips0_100_0 alpha0_100_0'></div>
<div id="backtop"><a href="#top" id="btmTopBtn" class="zeaicolor"><i class="ico zeaicolor">&#xe60c;</i>顶部</a></div>
<div class="msg_yd" id="msg_yd"><img src="<?php echo RES;?>m/img/msg_yd.png"></div>
<script>
var uid,lovebstr='<?php echo $_ZEAI['loveB'];?>';
if(zeai.empty(localStorage.msg_yd)){
	zeai.mask({maskcls:'mask1',son:msg_yd,cancelBubble:'off',close:function(){
		localStorage.msg_yd='wwwZEAIcn';
	}});
}
</script>
<?php
require_once ZEAI.'m/bottom2.php';
ob_end_flush();?>